package com.heatup.apt.api.service;

import com.heatup.apt.model.api.ApiResultModel;
import com.heatup.apt.model.order.OrderDetail;
import com.heatup.apt.model.order.OrderInfo;
import com.heatup.apt.model.order.PresalePrivateCourseOrderModel;
import com.heatup.apt.model.user.UserInfo;

public interface PrivateCoachOpenOrderService {

    /**
     *@Author: timo
     *@Date: 2018/3/26 14:16
     *@Description:
     * 创建预付私教课程订单
     *
     */
    ApiResultModel createPrepayPrivateCourseOrder(PresalePrivateCourseOrderModel orderModel, UserInfo userInfo);

    /**
     *@Author: timo
     *@Date: 2018/3/26 14:20
     *@Description:
     * 生成支付二维码
     *
     */
    ApiResultModel queryPayPrivateCourseOrderDetail(Integer orderId, Integer isCoach, UserInfo userInfo);

    boolean createPrivateCourse(OrderInfo orderInfo, OrderDetail orderDetail);
}
